home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / patches / symantec / std61.exe / UPDATE.BAT < prev    next >
DOS Batch File  |  1993-12-30  |  15KB  |  532 lines

  1. cls
  2.  
  3. if not exist bin\scd.dll goto wrongdir
  4.  
  5. @echo off
  6. rem ------------------------------------------------
  7. REM If MFC samples are installed, we get rid of the 
  8. REM RES dirs in SCRIBBLE
  9.  
  10. if not exist mfc\samples\scribble\step0\*.* goto nomfcsam
  11. cd mfc\samples
  12. del scribble\step0\res\*.ico
  13. del scribble\step0\res\*.bmp
  14. rd scribble\step0\res
  15. del scribble\step1\res\*.ico
  16. del scribble\step1\res\*.bmp
  17. rd scribble\step1\res
  18. del scribble\step2\res\*.ico
  19. del scribble\step2\res\*.bmp
  20. rd scribble\step2\res
  21. del scribble\step3\res\*.ico
  22. del scribble\step3\res\*.bmp
  23. rd scribble\step3\res
  24. del scribble\step4\res\*.ico
  25. del scribble\step4\res\*.bmp
  26. del scribble\step4\*.res
  27. rd scribble\step4\res
  28. del scribble\step5\res\*.ico
  29. del scribble\step5\res\*.bmp
  30. rd scribble\step5\res
  31. cd ..\..
  32. @echo DONE
  33. @echo .
  34.  
  35. :nomfcsam
  36. rem ------------------------------------------------
  37. REM If MFC is installed, get rid of README directory
  38.  
  39. if not exist MFC\README\*.* goto nomfcrd
  40. @echo Deleting MFC\README
  41. del mfc\readme\*.txt
  42. rd mfc\readme
  43. @echo DONE
  44. @echo .
  45.  
  46. :nomfcrd
  47. rem ------------------------------------------------
  48. REM Patching BIN directory
  49.  
  50. @echo Patching BIN directory
  51. patch .\bin bin.rtp /ignore /nopathsearch
  52. @echo DONE
  53. @echo .
  54.  
  55. rem ------------------------------------------------
  56. REM Patching SAMPLES\WINDOWS\DLLPROJ directory
  57.  
  58. if not exist SAMPLES\WINDOWS\DLLPROJ\*.* goto nodllprj
  59. @echo Patching SAMPLES\WINDOWS\DLLPROJ directory
  60. patch .\samples\windows\dllproj dllprj.rtp /ignore /nopathsearch
  61. @echo DONE
  62. @echo .
  63.  
  64. :nodllprj
  65. rem ------------------------------------------------
  66. REM Patching SAMPLES\WINDOWS\HELPEX directory
  67.  
  68. if not exist SAMPLES\WINDOWS\HELPEX\*.* goto nohelpex
  69. @echo Patching SAMPLES\WINDOWS\HELPEX directory
  70. patch .\samples\windows\helpex helpex.rtp /ignore /nopathsearch
  71. @echo DONE
  72. @echo .
  73.  
  74. :nohelpex
  75. rem ------------------------------------------------
  76. REM Patching SAMPLES\WINDOWS\STRESS directory
  77.  
  78. if not exist SAMPLES\WINDOWS\STRESS\*.* goto nostress
  79. @echo Patching SAMPLES\WINDOWS\STRESS directory
  80. patch .\samples\windows\stress stress.rtp /ignore /nopathsearch
  81. @echo DONE
  82. @echo .
  83.  
  84. :nostress
  85. rem ------------------------------------------------
  86. REM Patching SAMPLES\WINDOWS\ZOOM directory
  87.  
  88. if not exist SAMPLES\WINDOWS\ZOOM\*.* goto nozoom
  89. @echo Patching SAMPLES\WINDOWS\ZOOM directory
  90. patch .\samples\windows\zoom zoom.rtp /ignore /nopathsearch
  91. @echo DONE
  92. @echo .
  93.  
  94. :nozoom
  95. rem ------------------------------------------------
  96. REM Patching SAMPLES\WINDOWS\ANIMATE directory
  97.  
  98. if not exist SAMPLES\WINDOWS\ANIMATE\*.* goto noanimat
  99. @echo Patching SAMPLES\WINDOWS\ANIMATE directory
  100. patch .\samples\windows\animate animat.rtp /ignore /nopathsearch
  101. @echo DONE
  102. @echo .
  103.  
  104. :noanimat
  105. rem ------------------------------------------------
  106. REM Patching SAMPLES\WINDOWS\WCLOCK directory
  107.  
  108. if not exist SAMPLES\WINDOWS\WCLOCK\*.* goto nowclock
  109. @echo Patching SAMPLES\WINDOWS\WCLOCK directory
  110. patch .\samples\windows\wclock wclock.rtp /ignore /nopathsearch
  111. @echo DONE
  112. @echo .
  113.  
  114. :nowclock
  115. rem ------------------------------------------------
  116. REM Patching LIB directory
  117.  
  118. @echo Patching LIB directory
  119. patch .\lib lib.rtp /ignore /nopathsearch
  120. @echo DONE
  121. @echo .
  122.  
  123. rem ------------------------------------------------
  124. REM Patching MFC directory
  125.  
  126. if not exist MFC\LIB\*.* goto nomfc
  127. @echo Patching MFC directory
  128. patch .\mfc  mfc.rtp /ignore /nopathsearch
  129. @echo DONE
  130. @echo .
  131.  
  132. :nomfc
  133. rem ------------------------------------------------
  134. REM Patching MFC\SRC directory
  135.  
  136. if not exist MFC\SRC\*.* goto nomfcsrc
  137. @echo Patching MFC\SRC directory
  138. patch .\mfc\src  mfcsrc.rtp /ignore /nopathsearch
  139. @echo DONE
  140. @echo .
  141.  
  142. :nomfcsrc
  143. rem ------------------------------------------------
  144. REM Patching MFC\LIB directory
  145.  
  146. if not exist MFC\LIB\*.* goto nomfclib
  147. @echo Patching MFC\LIB directory
  148. patch .\mfc\lib  mfclib.rtp /ignore /nopathsearch
  149. @echo DONE
  150. @echo .
  151.  
  152. :nomfclib
  153. rem ------------------------------------------------
  154. REM Patching MFC\INCLUDE directory
  155.  
  156. if not exist MFC\INCLUDE\*.* goto nomfcinc
  157. @echo Patching MFC\INCLUDE directory
  158. patch .\mfc\include  mfcinc.rtp /ignore /nopathsearch
  159. @echo DONE
  160. @echo .
  161.  
  162. :nomfcinc
  163. rem ------------------------------------------------
  164. REM Patching MFC\SAMPLES\CALC directory
  165.  
  166. if not exist MFC\SAMPLES\CALC\*.* goto nocalc
  167. @echo Patching MFC\SAMPLES\CALC directory
  168. patch .\mfc\samples\calc calc.rtp /ignore /nopathsearch
  169. @echo DONE
  170. @echo .
  171.  
  172. :nocalc
  173. rem ------------------------------------------------
  174. REM Patching MFC\SAMPLES\CHKBOOK directory
  175.  
  176. if not exist MFC\SAMPLES\CHKBOOK\*.* goto nochkbok
  177. @echo Patching MFC\SAMPLES\CHKBOOK directory
  178. patch .\mfc\samples\chkbook chkbok.rtp /ignore /nopathsearch
  179. @echo DONE
  180. @echo .
  181.  
  182. :nochkbok
  183. rem ------------------------------------------------
  184. REM Patching MFC\SAMPLES\CRTLBARS directory
  185.  
  186. if not exist MFC\SAMPLES\CTRLBARS\*.* goto noctrlbr
  187. @echo Patching MFC\SAMPLES\CTRLBARS directory
  188. patch .\mfc\samples\ctrlbars ctrlbr.rtp /ignore /nopathsearch
  189. @echo DONE
  190. @echo .
  191.  
  192. :noctrlbr
  193. rem ------------------------------------------------
  194. REM Patching MFC\SAMPLES\CTRLTEST directory
  195.  
  196. if not exist MFC\SAMPLES\CTRLTEST\*.* goto noctrlts
  197. @echo Patching MFC\SAMPLES\CTRLTEST directory
  198. patch .\mfc\samples\ctrltest ctrlts.rtp /ignore /nopathsearch
  199. @echo DONE
  200. @echo .
  201.  
  202. :noctrlts
  203. rem ------------------------------------------------
  204. REM Patching MFC\SAMPLES\DIB directory
  205.  
  206. if not exist MFC\SAMPLES\DIB\*.* goto nodib
  207. @echo Patching MFC\SAMPLES\DIB directory
  208. patch .\mfc\samples\dib dib.rtp /ignore /nopathsearch
  209. @echo DONE
  210. @echo .
  211.  
  212. :nodib
  213. rem ------------------------------------------------
  214. REM Patching MFC\SAMPLES\DIBLOOK directory
  215.  
  216. if not exist MFC\SAMPLES\DIBLOOK\*.* goto nodiblok
  217. @echo Patching MFC\SAMPLES\DIBLOOK directory
  218. patch .\mfc\samples\diblook diblok.rtp /ignore /nopathsearch
  219. @echo DONE
  220. @echo .
  221.  
  222. :nodiblok
  223. rem ------------------------------------------------
  224. REM Patching MFC\SAMPLES\DLLTRACE directory
  225.  
  226. if not exist MFC\SAMPLES\DLLTRACE\*.* goto nodlltrc
  227. @echo Patching MFC\SAMPLES\DLLTRACE directory
  228. patch .\mfc\samples\DLLTRACE dlltrc.rtp /ignore /nopathsearch
  229. @echo DONE
  230. @echo .
  231.  
  232. :nodlltrc
  233. rem ------------------------------------------------
  234. REM Patching MFC\SAMPLES\DOCTEMP directory
  235.  
  236. if not exist MFC\SAMPLES\DOCTEMP\*.* goto nodoctmp
  237. @echo Patching MFC\SAMPLES\DOCTEMP directory
  238. patch .\mfc\samples\DOCTEMP doctmp.rtp /ignore /nopathsearch
  239. @echo DONE
  240. @echo .
  241.  
  242. :nodoctmp
  243. rem ------------------------------------------------
  244. REM Patching MFC\SAMPLES\HELLO directory
  245.  
  246. if not exist MFC\SAMPLES\HELLO\*.* goto nohello
  247. @echo Patching MFC\SAMPLES\HELLO directory
  248. patch .\mfc\samples\hello hello.rtp /ignore /nopathsearch
  249. @echo DONE
  250. @echo .
  251.  
  252. :nohello
  253. rem ------------------------------------------------
  254. REM Patching MFC\SAMPLES\HELLOAPP directory
  255.  
  256. if not exist MFC\SAMPLES\HELLOAPP\*.* goto noheloap
  257. @echo Patching MFC\SAMPLES\HELLOAPP directory
  258. patch .\mfc\samples\helloapp heloap.rtp /ignore /nopathsearch
  259. @echo DONE
  260. @echo .
  261.  
  262. :noheloap
  263. rem ------------------------------------------------
  264. REM Patching MFC\SAMPLES\HIERSVR directory
  265.  
  266. if not exist MFC\SAMPLES\HIERSVR\*.* goto nohier
  267. @echo Patching MFC\SAMPLES\HIERSVR directory
  268. patch .\mfc\samples\hiersvr hier.rtp /ignore /nopathsearch
  269. @echo DONE
  270. @echo .
  271.  
  272. :nohier
  273. rem ------------------------------------------------
  274. REM Patching MFC\SAMPLES\MDI directory
  275.  
  276. if not exist MFC\SAMPLES\MDI\*.* goto nomdi
  277. @echo Patching MFC\SAMPLES\MDI directory
  278. patch .\mfc\samples\mdi mdi.rtp /ignore /nopathsearch
  279. @echo DONE
  280. @echo .
  281.  
  282. :nomdi
  283. rem ------------------------------------------------
  284. REM Patching MFC\SAMPLES\MINSVR directory
  285.  
  286. if not exist MFC\SAMPLES\MINSVR\*.* goto nominsvr
  287. @echo Patching MFC\SAMPLES\MINSVR directory
  288. patch .\mfc\samples\minsvr minsvr.rtp /ignore /nopathsearch
  289. @echo DONE
  290. @echo .
  291.  
  292. :nominsvr
  293. rem ------------------------------------------------
  294. REM Patching MFC\SAMPLES\MULTIPAD directory
  295.  
  296. if not exist MFC\SAMPLES\MULTIPAD\*.* goto nomulti
  297. @echo Patching MFC\SAMPLES\MULTIPAD directory
  298. patch .\mfc\samples\multipad multi.rtp /ignore /nopathsearch
  299. @echo DONE
  300. @echo .
  301.  
  302. :nomulti
  303. rem ------------------------------------------------
  304. REM Patching MFC\SAMPLES\OCLIENT directory
  305.  
  306. if not exist MFC\SAMPLES\OCLIENT\*.* goto nooclt
  307. @echo Patching MFC\SAMPLES\OCLIENT directory
  308. patch .\mfc\samples\oclient oclt.rtp /ignore /nopathsearch
  309. @echo DONE
  310. @echo .
  311.  
  312. :nooclt
  313. rem ------------------------------------------------
  314. REM Patching MFC\SAMPLES\SPEAKN directory
  315.  
  316. if not exist MFC\SAMPLES\SPEAKN\*.* goto nospeakn
  317. @echo Patching MFC\SAMPLES\SPEAKN directory
  318. patch .\mfc\samples\speakn speakn.rtp /ignore /nopathsearch
  319. @echo DONE
  320. @echo .
  321.  
  322. :nospeakn
  323. rem ------------------------------------------------
  324. REM Patching MFC\SAMPLES\SUPERPAD directory
  325.  
  326. if not exist MFC\SAMPLES\SUPERPAD\*.* goto nosuper
  327. @echo Patching MFC\SAMPLES\SUPERPAD directory
  328. patch .\mfc\samples\superpad super.rtp /ignore /nopathsearch
  329. @echo DONE
  330. @echo .
  331.  
  332. :nosuper
  333. rem ------------------------------------------------
  334. REM Patching MFC\SAMPLES\TRACER directory
  335.  
  336. if not exist MFC\SAMPLES\TRACER\*.* goto notracer
  337. @echo Patching MFC\SAMPLES\TRACER directory
  338. patch .\mfc\samples\tracer tracer.rtp /ignore /nopathsearch
  339. @echo DONE
  340. @echo .
  341.  
  342. :notracer
  343. rem ------------------------------------------------
  344. REM Patching MFC\SAMPLES\DLLHUSK directory
  345.  
  346. if not exist MFC\SAMPLES\DLLHUSK\*.* goto nohusk
  347. @echo Patching MFC\SAMPLES\DLLHUSK directory
  348. patch .\mfc\samples\DLLHUSK husk.rtp /ignore /nopathsearch
  349. @echo DONE
  350. @echo .
  351.  
  352. :nohusk
  353. rem ------------------------------------------------
  354. REM Patching MFC\SAMPLES\VIEWEX directory
  355.  
  356. if not exist MFC\SAMPLES\VIEWEX\*.* goto noviewex
  357. @echo Patching MFC\SAMPLES\VIEWEX directory
  358. patch .\mfc\samples\viewex viewex.rtp /ignore /nopathsearch
  359. @echo DONE
  360. @echo .
  361.  
  362. :noviewex
  363. rem ------------------------------------------------
  364. REM Patching MFC\SAMPLES\VBCHART directory
  365.  
  366. if not exist MFC\SAMPLES\VBCHART\*.* goto novbchrt
  367. @echo Patching MFC\SAMPLES\VBCHART directory
  368. patch .\mfc\samples\VBCHART vbchrt.rtp /ignore /nopathsearch
  369. @echo DONE
  370. @echo .
  371.  
  372. :novbchrt
  373. rem ------------------------------------------------
  374. REM Patching MFC\SAMPLES\VBCIRCLE directory
  375.  
  376. if not exist MFC\SAMPLES\VBCIRCLE\*.* goto novbcirc
  377. @echo Patching MFC\SAMPLES\VBCIRCLE directory
  378. patch .\mfc\samples\vbcircle vbcirc.rtp /ignore /nopathsearch
  379. @echo DONE
  380. @echo .
  381.  
  382. :novbcirc
  383. rem ------------------------------------------------
  384. REM Patching MFC\SAMPLES\SCRIBBLE\STEP0 directory
  385.  
  386. if not exist MFC\SAMPLES\SCRIBBLE\STEP0\*.* goto nostep0
  387. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP0 directory
  388. patch .\mfc\samples\scribble\step0 step0.rtp /ignore /nopathsearch
  389. @echo DONE
  390. @echo .
  391.  
  392. :nostep0
  393. rem ------------------------------------------------
  394. REM Patching MFC\SAMPLES\SCRIBBLE\STEP1 directory
  395.  
  396. if not exist MFC\SAMPLES\SCRIBBLE\STEP1\*.* goto nostep1
  397. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP1 directory
  398. patch .\mfc\samples\scribble\step1 step1.rtp /ignore /nopathsearch
  399. @echo DONE
  400. @echo .
  401.  
  402. :nostep1
  403. rem ------------------------------------------------
  404. REM Patching MFC\SAMPLES\SCRIBBLE\STEP2 directory
  405.  
  406. if not exist MFC\SAMPLES\SCRIBBLE\STEP2\*.* goto nostep2
  407. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP2 directory
  408. patch .\mfc\samples\scribble\step2 step2.rtp /ignore /nopathsearch
  409. @echo DONE
  410. @echo .
  411.  
  412. :nostep2
  413. rem ------------------------------------------------
  414. REM Patching MFC\SAMPLES\SCRIBBLE\STEP3 directory
  415.  
  416. if not exist MFC\SAMPLES\SCRIBBLE\STEP3\*.* goto nostep3
  417. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP3 directory
  418. patch .\mfc\samples\scribble\step3 step3.rtp /ignore /nopathsearch
  419. @echo DONE
  420. @echo .
  421.  
  422. :nostep3
  423. rem ------------------------------------------------
  424. REM Patching MFC\SAMPLES\SCRIBBLE\STEP4 directory
  425.  
  426. if not exist MFC\SAMPLES\SCRIBBLE\STEP4\*.* goto nostep4
  427. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP4 directory
  428. patch .\mfc\samples\scribble\step4 step4.rtp /ignore /nopathsearch
  429. @echo DONE
  430. @echo .
  431.  
  432. :nostep4
  433. rem ------------------------------------------------
  434. REM Patching MFC\SAMPLES\SCRIBBLE\STEP5 directory
  435.  
  436. if not exist MFC\SAMPLES\SCRIBBLE\STEP5\*.* goto nostep5
  437. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP5 directory
  438. patch .\mfc\samples\scribble\step5 step5.rtp /ignore /nopathsearch
  439. @echo DONE
  440. @echo .
  441.  
  442. :nostep5
  443. rem ------------------------------------------------
  444. REM Patching HELP directory
  445.  
  446. if not exist HELP\*.* goto nohelp
  447. @echo Patching HELP directory
  448. patch .\help help.rtp /ignore /nopathsearch
  449. @echo DONE
  450. @echo .
  451.  
  452. :nohelp
  453. rem ------------------------------------------------
  454. REM Patching INCLUDE directory
  455.  
  456. @echo Patching INCLUDE directory
  457. patch .\include incl.rtp /ignore /nopathsearch
  458. @echo DONE
  459. @echo .
  460.  
  461. rem ------------------------------------------------
  462. REM Patching INCLUDE\SYS directory
  463.  
  464. if not exist INCLUDE\SYS\*.* goto nosys
  465. @echo Patching INCLUDE\SYS directory
  466. patch .\include\sys incsys.rtp /ignore /nopathsearch
  467. @echo DONE
  468. @echo .
  469.  
  470. :nosys
  471. rem ------------------------------------------------
  472. REM Patching README directory
  473.  
  474. if not exist README\*.* goto :delete
  475. @echo Patching README directory
  476. patch .\readme readme.rtp /ignore /nopathsearch
  477. @echo DONE
  478. @echo .
  479.  
  480. :delete
  481.  
  482. rem -----------------------------------------------
  483. REM Deleting exe2bin.pif if not needed
  484.  
  485. if exist BIN\SCW.EXE goto optcfg
  486. if exist LIB\SDS.LIB goto optcfg
  487. del bin\exe2bin.pif
  488.  
  489. :optcfg
  490. rem -----------------------------------------------
  491. REM Deleting config file if OptLink not installed
  492.  
  493. if exist BIN\LINK.EXE goto textmode
  494. if exist BIN\LINKD.DLL goto textmode
  495. del bin\optlink.cfg
  496.  
  497. :textmode
  498. rem -----------------------------------------------
  499. REM Deleting config files if no text-mode debugger
  500.  
  501. if exist BIN\SCDW.EXE goto end
  502. if exist BIN\SCD.EXE goto end
  503. del bin\scdb*.cfg
  504.  
  505. :end
  506. rem ===============================================
  507. REM Cleaning up patch files
  508.  
  509. @echo .
  510. @echo Successfully updated version 6.0 to 6.1
  511. @echo .
  512. @echo About to delete patch files.
  513. @echo If you do not want the following files to be
  514. @echo deleted, press Ctrl+Break, otherwise, press any key:
  515. @echo.
  516. @echo PATCH.EXE       *.RTP     DOPATCH.BAT
  517. @echo .
  518. pause
  519.  
  520. del patch.exe
  521. del *.rtp
  522. @echo .
  523. @echo We recommend deleting STD61.EXE and UPDATE.BAT to free up 
  524. @echo 4 MB of disk space
  525. @echo .
  526. goto done
  527.  
  528. :wrongdir
  529. @echo Compiler not found.  Probably copied STD61.EXE to wrong directory
  530.  
  531. :done
  532.